package com.example.demo.java8.functionalinterface.day240426;

import lombok.extern.slf4j.Slf4j;

/**
 * 使用 LambdaFunction 函数型接口
 *
 * @author luo
 * @since 2024/4/26 23:27
 */
@Slf4j
public class LambdaFunctionTest {

    public static void main(String[] args) {
        LambdaFunction function = (str)->{
            log.info(str);
        };
        function.func("一个形参");
        LambdaFunction2 function2 = (str,i)->{
            log.info(str+":"+i);
        };
        function2.func("多个形参",2);

    }

}
